﻿#ifndef __ICON_H__
#define __ICON_H__
#include"Background.h"
class Sprite;
class LifeIcon :public Background
{
public:
	LifeIcon()=default;
	LifeIcon(const QPoint& pos);
	~LifeIcon()=default;
	void init();
	void update();
	void draw(QPainter* painter);
	void setNum(const int n);
	const int getTextWidth();
	const int getTextHeight();
protected:
	int m_num = 0;//数量
	QPoint m_TextPos;
	QPen  m_NumPen;
	QFont m_NumFont;
private:
	
	//QPoint 
};

#endif // !__MESSAGE_H__